$ () ->
	$("#delete_btn").click (e) ->
		param =
			id: $(e.target).parent().parent().parent().children().eq(0).html()

		$.post '/api/admin/article/delete',param,(res) ->
			if res.status.errCode is 0
				alert "删除成功"
				window.location.reload()
			else
				alert res.status.message